package com.guang.mybatis.pojo;

import java.io.Serializable;

/**
 * @author 
 */
public class Account implements Serializable {
    /**
     * 编号
     */
    private Integer id;

    /**
     * 用户编号
     */
    private Integer uid;

    /**
     * 金额
     */
    private Double money;

/*    *//**
     * 通过当前的这个类来查询到对应的User对象
     * 通过这种类嵌套的方式，只需要来执行一次SQL语句
     *//*
    private User user;*/

    private static final long serialVersionUID = 1L;

/*    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }*/

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }


    @Override
    public String toString() {
        return "Account{" +
                "id=" + id +
                ", uid=" + uid +
                ", money=" + money +
                '}';
    }
}